package com.heima.feign.client;

import com.heima.model.media.dtos.WmUserDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("leadnews-wemedia")
public interface WmediaFeign {

    /**
     * 保存自媒体用户
     * @param dto
     * @return 主键id
     */
    @PostMapping("/api/v1/wmuser/save")
    public Integer saveWmUser(@RequestBody WmUserDto dto);
}
